import service from '@/utils/request.js'

export const getFriendsList = (key, num = 1) => {
  return service({
    methods: 'get',
    // https://api.iyk0.com/shipu/?key=白菜&p=&n=
    url: `shipu/?key=${key}&p=${num}`
  })
}

export const getFriendsInfo = (key, num = 1, id) => {
  return service({
    methods: 'get',
    // https://api.iyk0.com/shipu/?key=白菜&p=&n=
    url: `shipu/?key=${key}&p=${num}&n=${id}`
  })
}
